@extends('admin.base.index')
@section('content')
    <div class="block-area" id="text-input">
                <h3 class="block-title">添加小米移动版页</h3>
                <form action=' {{ url("/admin/miui") }}/{{ $list->id }} ' method='post'  enctype="multipart/form-data">
                    <input type='hidden' name='_token' value='{{ csrf_token() }}'>
                    <input type="hidden" name="_method" value="PUT">
                    <div class="row">
                        <div class="col-lg-4">
                            <label class="col-sm-3 control-label no-padding-right" for="form-field-1">修改轮播图:</label><br/>
                            <div style="width:200px"><img src="{{ url('menu') }}/{{ $list->maxpic }}"></div><br/>
                            <h2>修改图片：</h2>
                            <div class="col-sm-9">
                                <input type="file" multiple name="maxpic"/><br/>
                            </div>
                        </div>
                        <div class="col-lg-4">
                            <label class="col-sm-3 control-label no-padding-right" for="form-field-1">修改小图图:</label><br/>
                            <div style="width:100px"><img src="{{ url('menu') }}/{{ $list->minpic }}"></div><br/>
                            <h2>修改图片：</h2>
                            <div class="col-sm-9">
                                <input type="file" multiple name="minpic"/><br/>
                            </div>
                        </div>
                        <div class="col-lg-10">
                            <input name='intro' type="text" value="{{ $list->intro }}" class="form-control m-b-10" placeholder="请修改简介">
                        </div>
                        <div class="col-lg-10">
                            <input name='links' type="text" value="{{ $list->links }}" class="form-control m-b-10" placeholder="请修改友情链接">
                        </div>
                        <div class="col-lg-10">
                            <input name='url' type="text" value="{{ $list->url }}" class="form-control m-b-10" placeholder="修改链接路径">
                        </div>
                        <div class="col-lg-10">
                            <h2 style="color:blue">
                                @if (session('msg'))
                                    {{ session('msg') }}
                                @endif
                            </h2>
                        </div>
                        <div class='row'>
                            <div class="col-lg-10">
                                <input type='submit' class='btn' value='确认修改'>&nbsp;&nbsp;&nbsp;&nbsp;
                            </div>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                </form>
    </div>
@stop
